import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * @Author YuanYuan
 * @Date 2022/10/7
 * @Time 15:45
 */
public class Demo10 {
    //使用字符流写文件
    public static void main(String[] args) throws IOException {
        Writer writer = new FileWriter("./bbb.txt");
        writer.write("hello yuanyuan");
        writer.close();
    }
}
